package com.bluemobi.framework.pay.wechat.entity;

/**
 * 统一下单返回对象
 *
 * @author zhangyong
 * @version 1.0
 * @Date 2016-4-22 16:18
 */
public class UnifiedOrderRes {
    //协议层
    private String return_code;//返回状态码（SUCCESS/FAIL）
    private String return_msg;//返回信息

    //协议返回的具体数据（以下字段在return_code 为SUCCESS 的时候有返回）
    private String appid;//公众账号ID String(32)
    private String mch_id;//商户号 String(32)
    private String nonce_str;//随机字符串 String(32)
    private String sign;//签名 String(32)
    private String result_code;//业务结果(SUCCESS/FAIL)
    private String err_code;//错误代码
    private String err_code_des;//错误代码描述

    //以下字段在return_code 和result_code都为SUCCESS的时候有返回
    private String trade_type;//交易类型(JSAPI，NATIVE，APP)
    private String prepay_id;//预支付返回支付标识
    private String code_url;//二维码链接(rade_type为NATIVE时返回)

    private String key;
    
    public String getReturn_code() {
        return return_code;
    }

    public void setReturn_code(String return_code) {
        this.return_code = return_code;
    }

    public String getReturn_msg() {
        return return_msg;
    }

    public void setReturn_msg(String return_msg) {
        this.return_msg = return_msg;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getResult_code() {
        return result_code;
    }

    public void setResult_code(String result_code) {
        this.result_code = result_code;
    }

    public String getErr_code() {
        return err_code;
    }

    public void setErr_code(String err_code) {
        this.err_code = err_code;
    }

    public String getErr_code_des() {
        return err_code_des;
    }

    public void setErr_code_des(String err_code_des) {
        this.err_code_des = err_code_des;
    }

    public String getTrade_type() {
        return trade_type;
    }

    public void setTrade_type(String trade_type) {
        this.trade_type = trade_type;
    }

    public String getPrepay_id() {
        return prepay_id;
    }

    public void setPrepay_id(String prepay_id) {
        this.prepay_id = prepay_id;
    }

    public String getCode_url() {
        return code_url;
    }

    public void setCode_url(String code_url) {
        this.code_url = code_url;
    }

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
    
}
